/**
 * 网站主页轮播图
 * 
 */
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
	/*	轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	
	//轮播前的标签
	_EsdDynamicTransformationScript.num = $("#header_menu_details_mask .header_detail_container:eq(6) .drop_nav_list li").length-1;
	_EsdDynamicTransformationScript.esdRotationPreATag = $("#header_menu_details_mask .header_detail_container:eq(6) .drop_nav_list li:eq("+_EsdDynamicTransformationScript.num+") a");
	
	//文字A标签
	_EsdDynamicTransformationScript.esdRotationATag1 = $("#D1pic1 .fcon:eq(0) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag2 = $("#D1pic1 .fcon:eq(1) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag3 = $("#D1pic1 .fcon:eq(2) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag4 = $("#D1pic1 .fcon:eq(3) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag5 = $("#D1pic1 .fcon:eq(4) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag6 = $("#D1pic1 .fcon:eq(5) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag7 = $("#D1pic1 .fcon:eq(6) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag8 = $("#D1pic1 .fcon:eq(7) .shadow a");
	_EsdDynamicTransformationScript.esdRotationATag9 = $("#D1pic1 .fcon:eq(8) .shadow a");
	
	//原点
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint1 = $("#D1fBt a:eq(0) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint2 = $("#D1fBt a:eq(1) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint3 = $("#D1fBt a:eq(2) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint4 = $("#D1fBt a:eq(3) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint5 = $("#D1fBt a:eq(4) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint6 = $("#D1fBt a:eq(5) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint7 = $("#D1fBt a:eq(6) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint8 = $("#D1fBt a:eq(7) i");
	_EsdDynamicTransformationScript.esdRotationCircleNumPoint9 = $("#D1fBt a:eq(8) i");
	
	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationAfterATag = $(".main .part:eq(0) h2 a");
	
	// 轮播图 轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationPreATag.focus(function (e) {
		$(this).bind("keydown.keydown_0_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){

			}else if (e.keyCode == 9) {
//				$("#header_menu_list .header_menu_list:eq(5) a").mouseout();
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
				_EsdDynamicTransformationScript.esdRotationATag1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationPreATag.blur(function(){
		$(this).unbind("keydown.keydown_0_0");
	});
	
	// 轮播图 第一块
	_EsdDynamicTransformationScript.esdRotationATag1.focus(function (e) {
		$(this).bind("keydown.keydown_0_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$("#header_menu_list .header_menu_list:eq(5) a").mouseover();
				_EsdDynamicTransformationScript.esdRotationPreATag.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
				_EsdDynamicTransformationScript.esdRotationATag2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag1.blur(function(){
		$(this).unbind("keydown.keydown_0_1");
	});
	
	// 轮播图 第二块
	_EsdDynamicTransformationScript.esdRotationATag2.focus(function (e) {
		$(this).bind("keydown.keydown_0_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint1.click();
				_EsdDynamicTransformationScript.esdRotationATag1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
				_EsdDynamicTransformationScript.esdRotationATag3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag2.blur(function(){
		$(this).unbind("keydown.keydown_0_2");
	});
	
	// 轮播图 第三块
	_EsdDynamicTransformationScript.esdRotationATag3.focus(function (e) {
		$(this).bind("keydown.keydown_0_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint2.click();
				_EsdDynamicTransformationScript.esdRotationATag2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag3.blur(function(){
		$(this).unbind("keydown.keydown_0_3");
	});
	
	// 轮播图 第四块
	_EsdDynamicTransformationScript.esdRotationATag4.focus(function (e) {
		$(this).bind("keydown.keydown_0_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint3.click();
				_EsdDynamicTransformationScript.esdRotationATag3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint5.click();
				_EsdDynamicTransformationScript.esdRotationATag5.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag4.blur(function(){
		$(this).unbind("keydown.keydown_0_4");
	});
	
	// 轮播图 第五块
	_EsdDynamicTransformationScript.esdRotationATag5.focus(function (e) {
		$(this).bind("keydown.keydown_0_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint4.click();
				_EsdDynamicTransformationScript.esdRotationATag4.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint6.click();
				_EsdDynamicTransformationScript.esdRotationATag6.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag5.blur(function(){
		$(this).unbind("keydown.keydown_0_5");
	});
	
	// 轮播图 第六块
	_EsdDynamicTransformationScript.esdRotationATag6.focus(function (e) {
		$(this).bind("keydown.keydown_0_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint5.click();
				_EsdDynamicTransformationScript.esdRotationATag5.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint7.click();
				_EsdDynamicTransformationScript.esdRotationATag7.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag6.blur(function(){
		$(this).unbind("keydown.keydown_0_6");
	});
	
	// 轮播图 第七块
	_EsdDynamicTransformationScript.esdRotationATag7.focus(function (e) {
		$(this).bind("keydown.keydown_0_7", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint6.click();
				_EsdDynamicTransformationScript.esdRotationATag6.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint8.click();
				_EsdDynamicTransformationScript.esdRotationATag8.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag7.blur(function(){
		$(this).unbind("keydown.keydown_0_7");
	});
	
	// 轮播图 第八块
	_EsdDynamicTransformationScript.esdRotationATag8.focus(function (e) {
		$(this).bind("keydown.keydown_0_8", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint7.click();
				_EsdDynamicTransformationScript.esdRotationATag7.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint9.click();
				_EsdDynamicTransformationScript.esdRotationATag9.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag8.blur(function(){
		$(this).unbind("keydown.keydown_0_8");
	});
	
	// 轮播图 第九块
	_EsdDynamicTransformationScript.esdRotationATag9.focus(function (e) {
		$(this).bind("keydown.keydown_0_9", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint8.click();
				_EsdDynamicTransformationScript.esdRotationATag8.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAfterATag.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationATag9.blur(function(){
		$(this).unbind("keydown.keydown_0_9");
	});
	
	// 轮播图 轮播后的焦点
	_EsdDynamicTransformationScript.esdRotationAfterATag.focus(function (e) {
		$(this).bind("keydown.keydown_0_10", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationCircleNumPoint9.click();
				_EsdDynamicTransformationScript.esdRotationATag9.focus();
				return false;
			}else if (e.keyCode == 9) {
				
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationAfterATag.blur(function(){
		$(this).unbind("keydown.keydown_0_10");
	});
	
}
//***************	网站首页 end	***************	//